package charts;

import java.io.File;
import java.io.IOException;

import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;

public class ChartUtils {
	public static void saveChart(JFreeChart jfreechart, String path) {
		try {
			ChartUtilities.saveChartAsJPEG(new File(path), 1, jfreechart, 800, 800);
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
}
